package ${packageName};

import java.util.List;
import java.util.Map;

/**
 * ClassName: BaseMapper
 * Function:  Mapper基础类
 * Date:      ${datetime}
 * author     ${author}
 * version    V1.0
 */
public interface BaseMapper<T> {

    T selectByPrimaryKey(Long id);

    List<T> list(Map<String, Object> map);

    int count(Map<String , Object> map);

    int insert(T record);

    int batchInsert(List<T> list);

    int updateByPrimaryKey(T record);

    int batchUpdate(List<T> list);

    int deleteByPrimaryKey(Long id);

    int batchRemove(Long[] ids);
}